Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 2 - Control Manager Reference / Control Manager Types and Constants


Bevel Button Behavior Constants

NEW WITH THE APPEARANCE MANAGER

You can pass these constants in the high byte of the minimumValue parameter of NewControl to create a bevel button with a specific behavior.

enum {
   kControlBehaviorPushbutton     = 0,
   kControlBehaviorToggles        = 0x0100,
   kControlBehaviorSticky         = 0x0200,
   kControlBehaviorOffsetContents = 0x8000
};

Constant descriptions

kControlBehaviorPushbutton
Push button (momentary) behavior. The bevel button pops up after being clicked.
kControlBehaviorToggles
Toggle behavior. The bevel button toggles state automatically when clicked.
kControlBehaviorSticky
Sticky behavior. Once clicked, the bevel button stays down until your application sets the control's value to 0. This behavior is useful in tool palettes and radio groups.
kControlBehaviorOffsetContents
Bevel button contents are offset (one pixel down and to the right) when button is pressed.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998